﻿#ifndef __STREAM__HELPER__H__
#define __STREAM__HELPER__H__
#include "DetourConfig.h"
#include "DetourNavMesh.h"
//extern "C" {
	 bool read_bytes(const char* buf, int length, int& pos, unsigned char* dst, int readLen);
	 bool read_int(const char* buf, int length, int& pos, int& v);
	 bool read_unsigned_int(const char* buf, int length, int& pos, unsigned int& v);
	 bool write_int(char* buf, int length, int& pos, int v);
	 bool read_float(const char* buf, int length, int& pos, float& vf);
	 bool write_float(char* buf, int length, int& pos, float vf);
	 bool read_v3(const char* buf, int length, int& pos, float* v3buf);
	 bool write_v3(char* buf, int length, int& pos, const float* v);
	 bool write_short(char* buf, int length, int& pos, short v);
	 bool write_ushort(char* buf, int length, int& pos, unsigned short v);
//}
#endif//__STREAM__HELPER__H__